package com.service.impl;

import com.bean.Customer;
import com.bean.Goods;
import com.dao.StatisticsDao;
import com.dao.impl.StatisticsDaoImpl;
import com.service.StatisticsService;

import java.util.List;

public class StatisticsServiceImpl implements StatisticsService {
    private StatisticsDao statisticsDao = new StatisticsDaoImpl();

    @Override
    public List<Goods> getSellStatisticsList() {
        return statisticsDao.getSellStatisticsList();
    }

    @Override
    public List<Goods> findSellStatisticsList(String manufactor, String startDate, String endDate) {
        return statisticsDao.findSellStatisticsList(manufactor,startDate,endDate);
    }

    @Override
    public List<Customer> getCustomerStatisticsList() {
        return statisticsDao.getCustomerStatisticsList();
    }

    @Override
    public List<Customer> findCustomerStatisticsList(String customerName, String startDate, String endDate) {
        return statisticsDao.findCustomerStatisticsList(customerName,startDate,endDate);
    }
}
